package hn.cch.service.impl;

import hn.cch.dao.TermDao;
import hn.cch.model.Term;
import hn.cch.service.TermService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by chench on 2020-5-21.
 */

@Component(value = "termService")
public class TermServiceImpl implements TermService {

    @Autowired
    private TermDao termDao;

    public List<Term> getAll(){
        return termDao.getAll();
    }
}
